package com.yuexunit.finance.member.entity.lexicon;

public enum RepayStateEnum {

	NOREPAY("未还款"), REPAYING("还款中"), REPAID("已还款"),OVERDUE("逾期");

	private final String repayState;

	RepayStateEnum(String repayState) {
		this.repayState = repayState;
	}

	public String getValue() {
		return repayState;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 0:未还款/1:还款中/2:已还款/3:逾期
	 * @return 认证类型枚举
	 */
	public static RepayStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return NOREPAY;
		}
		return values()[value.intValue()];
	}

}
